<template>
  <w-log :remove-url="removeUrl" :list-url="listUrl" :options="searchOptions">
    <template v-slot="scope" class="cell">
      <a-row :gutter="16">
        <a-col span="8">错误信息: {{ scope.item.msg }}</a-col>
        <a-col span="8">状态码: {{ scope.item.statusCode }}</a-col>
        <a-col span="8">时间: {{ scope.item.date | DateFormat }}</a-col>
      </a-row>
    </template>
  </w-log>
</template>

<script>
import WLog from '../../../../components/admin/logs'
import { Admin } from '@/config/api'
export default {
  name: 'AdminLogsServerError',
  layout: 'admin',
  components: {
    WLog
  },
  data () {
    return {
      listUrl: Admin.logs.server.errorList,
      removeUrl: Admin.logs.server.errorDelete,
      searchOptions: [
        {
          title: '错误信息',
          key: 'msg'
        },
        {
          title: '状态码',
          key: 'statusCode'
        }
      ]
    }
  },
  head () {
    return {
      title: '日志-服务端-错误'
    }
  }
}
</script>

<style scoped></style>
